export const adminRoute = {
  path: '/admin',
  name: 'Admin',
  component: () =>
    import(/* webpackChunkName: "admin" */ '@/views/admin/home/index.vue'),
  meta: {
    auth: true,
    isAdmin: true,
    title: '后台管理',
  },
  children: [
    // 文章
    {
      path: 'article',
      name: 'Admin-article',
      component: () =>
        import(
          /* webpackChunkName: "admin-article" */ '@/views/admin/article/index.vue'
        ),
      meta: {
        title: '所有文章',
      },
    },
  ],
};
